FROM redmine
MAINTAINER Yu Yang gdyangyu@gmail.com
RUN echo "Asia/Shanghai" > /etc/timezone \
    && dpkg-reconfigure -f noninteractive tzdata

COPY sources.list /etc/apt/sources.list

RUN sed -i "s/rubygems.org/gems.ruby-china.org/g" /usr/src/redmine/Gemfile
RUN apt-get update \
    && apt-get install -y ruby-rmagick \
	&& rm -rf /var/lib/apt/lists/*

